var cordova = require('cordova');
//
var SERVICE_NAME = "dripx";
module.exports = {
    /**
     * dripx.test方法
     * @param params {[]} 参数列表
     * @param success {function} 成功时回调
     * @param error {function}  错误时候回调
     */
    test: function (params, success, error) {
        var action = "test";
        cordova.exec(success, error, SERVICE_NAME, action, params || []);
    },
    infrared: function (params, success, error) {
        cordova.exec(success, error, SERVICE_NAME, "infrared", params || []);
    }
};